package temp;

import java.util.Date;
import java.util.List;

import com.hanhai.zrb.model.project.UserProjectRef;
import com.hanhai.zrb.model.project.dto.UserProjectRefDto;


public interface UserProjectRefService {
	
	UserProjectRef  selectByPrimaryKey (Long id );

	int deleteByPrimaryKey (Long id );

	int insert( UserProjectRef record );

	int insertSelective( UserProjectRef record );

	int updateByPrimaryKeySelective( UserProjectRef record );

	int updateByPrimaryKey ( UserProjectRef record );
	
	List<UserProjectRef> queryRefByCondition(Date publishTime,boolean forward,Integer userId,Integer refType,Integer limit);
	
	List<UserProjectRef> queryRefByConditions(UserProjectRefDto userProjectRefDto);
	
	int deleteByProjectId(Integer projectId,Integer refType);

}
